/*
 * @Description  : 
 * @Author       : zhao
 * @Date         : 2022-07-11 09:16:54
 * @LastEditors  : zhao
 * @LastEditTime : 2022-07-18 14:24:03
 */
import request from '/@/utils/request';

/**
 * 登录api接口集合
 * @method signIn 用户登录
 * @method signOut 用户退出登录
 */
export function useLogin(params: any) {
	return request({
		url: '/api/OAuth/CSLogin',
		method: 'post',
		data: params,
	});
}
export function useLoginApi() {
	return {
		signIn: (params: object) => {
			return request({
				url: '/api/OAuth/CSLogin',
				method: 'post',
				data: params,
			});
		},
		signOut: (params: object) => {
			return request({
				url: '/user/signOut',
				method: 'post',
				data: params,
			});
		},
	};
}